package com.gouqi.mall.mapper;

import com.gouqi.mall.domain.Message;
import com.gouqi.mall.domain.dto.MessageResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {

    Integer addMessage(Message message);
    Integer updateMessage(Message message);
    List<MessageResult> getAllMessages();
    MessageResult getDescMessage(@Param("id")Integer id);

    Integer deleteMessage(@Param("id")Integer id);
}
